package com.ruoyi.generator.service.impl;

import com.ruoyi.generator.domain.FromBuildOptionsConfig;
import com.ruoyi.generator.mapper.FromBuildOptionsConfigMapper;
import com.ruoyi.generator.service.IFromBuildOptionsConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 单设计_展示单下拉框、单选框、多选框选项值Service业务层处理
 *
 * @author XL
 * @date 2022-08-05 12:14:16
 */
@Service
public class FromBuildOptionsConfigServiceImpl implements IFromBuildOptionsConfigService
{
    @Autowired
    private FromBuildOptionsConfigMapper fromBuildOptionsConfigMapper;

    /**
     * 查询单设计_展示单下拉框、单选框、多选框选项值
     *
     * @param id 单设计_展示单下拉框、单选框、多选框选项值ID
     * @return 单设计_展示单下拉框、单选框、多选框选项值
     */
    @Override
    public FromBuildOptionsConfig selectFromBuildOptionsConfigById(Long id)
    {
        return fromBuildOptionsConfigMapper.selectFromBuildOptionsConfigById(id);
    }

    /**
     * 查询单设计_展示单下拉框、单选框、多选框选项值列表
     *
     * @param fromBuildOptionsConfig 单设计_展示单下拉框、单选框、多选框选项值
     * @return 单设计_展示单下拉框、单选框、多选框选项值
     */
    @Override
    public List<FromBuildOptionsConfig> selectFromBuildOptionsConfigList(FromBuildOptionsConfig fromBuildOptionsConfig)
    {
        return fromBuildOptionsConfigMapper.selectFromBuildOptionsConfigList(fromBuildOptionsConfig);
    }

    /**
     * 新增单设计_展示单下拉框、单选框、多选框选项值
     *
     * @param fromBuildOptionsConfig 单设计_展示单下拉框、单选框、多选框选项值
     * @return 结果
     */
    @Override
    public int insertFromBuildOptionsConfig(FromBuildOptionsConfig fromBuildOptionsConfig)
    {
        return fromBuildOptionsConfigMapper.insertFromBuildOptionsConfig(fromBuildOptionsConfig);
    }

    /**
     * 修改单设计_展示单下拉框、单选框、多选框选项值
     *
     * @param fromBuildOptionsConfig 单设计_展示单下拉框、单选框、多选框选项值
     * @return 结果
     */
    @Override
    public int updateFromBuildOptionsConfig(FromBuildOptionsConfig fromBuildOptionsConfig)
    {
        return fromBuildOptionsConfigMapper.updateFromBuildOptionsConfig(fromBuildOptionsConfig);
    }

    /**
     * 批量删除单设计_展示单下拉框、单选框、多选框选项值
     *
     * @param ids 需要删除的单设计_展示单下拉框、单选框、多选框选项值ID
     * @return 结果
     */
    @Override
    public int deleteFromBuildOptionsConfigByIds(Long[] ids)
    {
        return fromBuildOptionsConfigMapper.deleteFromBuildOptionsConfigByIds(ids);
    }

    /**
     * 删除单设计_展示单下拉框、单选框、多选框选项值信息
     *
     * @param id 单设计_展示单下拉框、单选框、多选框选项值ID
     * @return 结果
     */
    @Override
    public int deleteFromBuildOptionsConfigById(Long id)
    {
        return fromBuildOptionsConfigMapper.deleteFromBuildOptionsConfigById(id);
    }
}
